<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  // 通过扩展运算符来追加
  "use strict"; {
    let arr1 = ["cz", "cc", "cy"];
    let arr2 = ["hao", "de", "ni", "ta"];
    let arr3 = [...arr1, ...arr2];
    console.table(arr3);
  }
</script>
<script>
  // 通过push来追加,push(里面可以放置多个参数，反回数组长度)
  "use strict"; {
    let arr1 = ["aa", "bb"];
    arr1.push("cc", ...arr1);
    console.table(arr1);
  }
</script>

</html>